#ifndef UI_H_
#define UI_H_

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "confFile.h"
#include "mmu.h"
#include "prm.h"
#include "pMailbox.h"
#include "process.h"

pthread_t* ui;
pthread_mutex_t filesMutex;

void runUI();
int createProcess();
int delProcess(int id);
int read(int vAddr, int pid, int byteAmmount);
int loopRead(int vAddr, int pid, int offset, int byteAmmount);
int readToFile(int vAddr,int pid,int byteAmmount,char* fileName);
int loopReadToFile(int vAddr,int pid,int offset,int byteAmmount,char* fileName);
int write(int vAddr,int pid,char* stringParam);
int loopWrite(int vAddr,int pid,char* stringParam,int offset,int byteAmmount);
void uiExit();

int handleCommand(char* cmd);

#endif /*UI_H_*/
